package com.example.device.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.device.R
import com.example.device.entity.PollingEntity

class PollingAdapter :BaseQuickAdapter<PollingEntity,BaseViewHolder>(R.layout.item_polling) {
    override fun convert(holder: BaseViewHolder, item: PollingEntity) {
        holder.getView<TextView>(R.id.tv_name).text = item.inspector
//        holder.getView<TextView>(R.id.tv_position).text = item.
        holder.getView<TextView>(R.id.tv_area).text = item.address
        holder.getView<TextView>(R.id.tv_time).text = item.appointmentTime
    }

}